package com.woniuxy.Test;

import com.woniuxy.Factory.ThreeFactory;
import com.woniuxy.entity.Person;

/**
 * @author LinKe
 * @version 1.0
 * @date 2021/11/9 16:29
 */
public class FactoryTest {

    /**
     * 测试配置文件读取 工厂模式创建对象
     * @param args
     */

    public static void main(String[] args) {
        ThreeFactory th = new ThreeFactory();
        Person person = th.doPerson();
        person.eat();
    }
}
